package net.lab1024.sa.admin.module.business.yct.ycttzq.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 听诊器用户 新建表单
 *
 * @Author zhangben
 * @Date 2024-10-10 13:24:57
 * @Copyright 20241010
 */

@Data
public class UserAddForm {

//    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "主键 不能为空")
//    private Integer id;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "手机号 不能为空")
    private String mobile;

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "名字 不能为空")
    private String userName;

    @Schema(description = "0正常 1禁用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "0正常 1禁用 不能为空")
    private Integer userStatus;

    @Schema(description = "心音采集时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "心音采集时间 不能为空")
    private Integer heartSecond;

    @Schema(description = "心音采集位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "心音采集位置 不能为空")
    private Integer heartPosNum;

    @Schema(description = "肺音采集时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "肺音采集时间 不能为空")
    private Integer lungSecond;

    @Schema(description = "肺音采集位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "肺音采集位置 不能为空")
    private Integer lungPosNum;

    @Schema(description = "1显示分析结果 0不显示", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "1显示分析结果 0不显示 不能为空")
    private Integer showResult;

    @Schema(description = "修改时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "修改时间 不能为空")
    private LocalDateTime updateTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间 不能为空")
    private LocalDateTime createTime;

}